Modularized the task tree JASON object. Works fine, but will check it over tomorrow.