Add lock feature.