Huge refactor.
Update command.