AMRules developing code for MOA