Adding states to parse the command.