Added check on failure.