Adds map functionality.