Created a unified way of adding markers to the planner