Modified uxf.py.