Export script. #712