Implemented the update command.

It's pretty crazy...