Added getters for numgens and gensize