Added workerthreadpool functions