Fix for new way Leo works

Now using the XML API