This is together with a protection function as you require gains become most recent always and get into the hook up