Change update command, so that a lock can be implemented later