Added small debugging. Possible fix for permission issue