Removed debug logging and fixed formatting.