Added ThreadController class (unfunctional)