Change rules map to multimap