Updated to print one warning after giving up.