Lock contract.