Made a proper CommandManager, updated tests and script.