Beginnings of recursive backend code for task assignment