Layered locking