Removing .idea files and adding debug logging to help understand why it does not work