Added check to ensure expanded factor is less than or equal to total. Need to keep reiterating until no new factors are generated, which should be detectable after one pass and before and after unique list is the same.