Reorganized locks and unlocks.