Implement DEBUG flag.