Add some console logs to for better trouble shooting
Add some console logs to for better trouble shooting