Removed unnecessary codes related to maps.