Allow ngenes to be passed as an argument to the simulation.