Move debug into config