Added helper functions to extract the planner data