 				docpad.log 'debug', "Wrote #{collection.length} files"
 				return next()
 
+		# Set progress indicator
+		opts.setProgressIndicator? -> ['writeFiles',tasks.completed,tasks.total]
+
 		# Cycle
-		collection.forEach (file) -> tasks.push (complete) ->
+		collection.forEach (file,index) -> tasks.push (complete) ->
 			# Skip
 			dynamic = file.get('dynamic')
 			write = file.get('write')

		docpad = @
		docpad.lastGenerate ?= new Date('1970')

		# Re-load and re-render only what is necessary
		if opts.reset? and opts.reset is false
			# Prepare
			docpad.generatePrepare (err) ->
				return next(err)  if err
				database = docpad.getDatabase()

				# Create a colelction for the files to reload

		maxAge: 86400000

		# Which middlewares would you like us to activate
		# The standard middlewares (bodePArser, methodOverride, express router)
		middlewareStandard: true
		# The standard bodyParser middleware
		middlewareBodyParser: true
		# The standard methodOverride middleware
		middlewareMethodOverride: true
		# The standard express router middleware
		middlewareExpressRouter: true
		# Our own 404 middleware
		middleware404: true
		# Our own 500 middleware
