Better way of enabling debug