Abstracting the get map functinoality