Adding logging to the app