Finished new threading system. Deciding if it should be implemented will
be discussed.