added new thread functionality