Adding separate lock & unlock.