Moving script to atlas data production