Got lock working (partly)