Removed unnecessary unlock.