Creating utility functions to generate maps