Added thread.join