Add some console logs to for better trouble shooting