Removed logging and fixed formatting.