Locking mechanism

Preliminary