Updates before committing to server.