Extra debug/error output and formatting