Wrote methods for mapHandler.h