Add allowFail to LRS construction in sample code