Updating variables to use rems