Added software lock and manual reset button