Implemented getThread method