Added command line parameters to enable debugging too.