Write to map