Add. timeout parameter to thread:join() method