Copyright added to mgd.py.