Added function for adding data to map as well as mock data.