Added ability to load the plan from json