Debugging

Add debug logging