This is together with a defence function since you need your gains providing current always and enter hook up