Added some logging and getApplicationName/Path functions