Revised version of dicta.py.