New script for AIO, using XML API