Merge functionality from autotiaa.py and tiaacref.py.