Started better handling for threads
Merge branch 'develop' into feature/threads
Added NewThreadScheduler
Merge branch 'feature/threads' into develop