Adding generic locks parser