MF scratch code