Removed unnecessary diagnostic code