Fix: made ploidy max a var