 			// if this token isn't in the Dictionary yet, increase count
 			if (_taskToProgressMap[taskToken] === undefined)
 			{
-				if (debug)
+				if (CallbackCollection.debug)
 					_taskToStackTraceMap[taskToken] = new Error("Stack trace").getStackTrace();
 				_taskCount++;
 				_maxTaskCount++;

	import flash.utils.Dictionary;
	
	import weave.api.core.IProgressIndicator;

	/**
	 * This is an implementation of IProgressIndicator.
	 * @author adufilie
	 */
	public class ProgressIndicator extends CallbackCollection implements IProgressIndicator
	{
		public static var debug:Boolean = false;
		
		/**
		 * @inheritDoc
		 */

			if (!isFinite(percent))
				percent = 0.5; // undetermined
			_taskToProgressMap[taskToken] = percent;
			getCallbackCollection(this).triggerCallbacks();
		}
		
		/**
