Added command line arg processing to make debugging optional