Implement debug flag