Moves setreturned to before any changes are made