Added to_map operation