Population model now working