added print statements while waiting for thread to execute