Add flag for DEBUG logging