Change certain variables on update