Added header file and converted ConsoleFunction to DefineEngineFunction