It influences which traits are passed on to future generations.