Added more logging to the app