More error detection with debugging