Add some troubleshooting statements

Add some logging statements to figure out the flow of the application