Adding in the necessary objects and structure to implement a proper thread.