Use debug from config and drop unused dependency