Finished up the command parsing logic.