Debugging logging functionality
Updated example