Changed from rasing error to a warning