LS protocol code and test completed.