Still finishing off population function.