Made changes to lock