Update codes of LSM