Added changes to improve parralelisation for multiple
populations.