Updated analysis code to use new LO function (again)