Added function of filling map