Better way of dealing with DEBUG flag.