Add preliminary task-reordering functionality (needs work)