Implement commands

Implementation of the first batch of commands.