Moved all commands to class files.