Change the hooks condition.