Added Join to thread