Implemented repeated checking for valid models with progressively fewer variables as a last resort option.