Introducing ad-hoc locks.