Minor changes in code to update marker