The effectiveness of any locking system depends on a combination of interrelated factors involving its design, manufacture, installation and maintenance. Locks, whether mechanical or electronic, are only as strong as the weakest part of the lock assembly, which includes the lock, the way the lock is installed, the strength of the door frame and the way the frame is constructed. Locks should be difficult to pick, and locking mechanisms should be protected against manipulation.