Basic mgf reading script