Started work on the threading lib