Almost working LSM. The restint potential in the readout is still wrong.