Updated lcd code