Migrating survey script from A2