Moved function type enum outside of ScriptManager
Removed unused function