Made locks functional