Cleanup logs and formatting