Added command line parameters for the state checker script