Adding Debug Mode