First version of lock