Life History Optimisation In Response To Environmental Change