Logging

More logging to debug