Removed global NGin:: functions and placed similar methods in the Application class.