This is the code and subsequent changes for LOTS based off what Jeff handed to me when I redid the table wiring