Added application debug flag and hiding of debug option