Implement and test extmap.