Initial LM test code