Added VERBOSE definiton and encapsulated all output for speedup