Fix UAM to use smarty still as we haven't done enough work to move it to the new functions