Added necessary methods for the class CommandCompiler.