Command processing loop and the first couple of commands.