Latest code for KLPMIS-3.0