Merge with AMRules
Merge with AMRules (2nd distributed implementation)