WIP
Added rollback helper for scheduler. Modified the return types of rhNodeToThreads according to intended usage.