Separate method responsible for mapping to follow DRY principle. Also,
warn the user when mapping is unsuccesful so the user is able to track
any errors in the map file.