Added start code for locks