Added function to place a marker