LS & LSR automated, bug fixes and output fixes as well