Simplify Genetic func a bit