Add parse-command function.