Implementing mapi and iteri.