Moved lst closer to where it gets used