Lock code added and should work