Add and update smart.lock