Finally a working population script!