Advanced mms4.py to next step