Fixed indentation and changed log statements