Adding logging in the application