Added mechanics of the locking mechanism.