Basic functions for map system
Adding map_add function.