New script for AIO; minor changes to insAph