New version for lockcontroller