Added a seperate command-line flag to enable debugging