Adding lock actions. Attaching a lock working
Detaching lock works