Fix indentation and remove unnecessary logging