Added a function for map visiting tracker