Added debug messages for failure.