Moved CommandFunction typedef to globals

Yeah