Update for thread lock