Map.write() now works. Wrote explode function.