Restore functions for XML output