Starting threads

Time to bite the bullet and add a function for creating new threads.