Removed logging function and fixed indentation