Allow vars to be passed to end operation