Made some changes to be able to parse user-defined commands.

Also made it so generating commands are parse-able.