Made a foundation for more command work.

And by "foundation", I mean "a bunch of conditionals".