Added logging, so that i can debug few things.
If this does not work, next is to put the things to try and except
blocks and debug more