What is the purpose of the gun locking mechanism?