Added print map function