Addition of thread join functionality in progress