       log.info "Watching for changes..." if initial
       setTimeout =>
         @compileChanged options, false
-      , 1000
+      , 250
 
   readIncludesFile: ->
     includesFile = @config.client.includesPath + "/includes.coffee"

    if sourceTime <= file.cacheTime
      if not file.content?
        file.content = fs.readFileSync file.cachePath, "utf-8"
        file.sourceMap = fs.readFileSync file.sourceMapPath, "utf-8" if fs.existsSync file.sourceMapPath
      return false

    source = fs.readFileSync file.sourcePath, "utf-8"


  buildJS: (options)->
    js = "var KD = {}; KD.config = #{JSON.stringify(@config.client.runtimeOptions)}; (function(){ "
    sourceMap =
      version: 3
      file: @config.client.js
      sourceRoot: @config.client.runtimeOptions.sourceUri
      sources: file.includePath for file in @scripts
      names: []
      mappings: ""
    fileLineOffset = 0
    firstInLine = true

    previousGeneratedLine = 1
    previousGeneratedColumn = 0
    previousOriginalLine = 0
    previousOriginalColumn = 0
    previousSource = 0

    for file, scriptIndex in @scripts
      js += file.content + "\n"
      for mapping in file.sourceMap
        while previousGeneratedLine < fileLineOffset + mapping.generatedLine
          sourceMap.mappings += ";"
          previousGeneratedLine++
          firstInLine = true
          previousGeneratedColumn = 0

        if not firstInLine
          sourceMap.mappings += ","
        firstInLine = false

        sourceMap.mappings += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn)
        previousGeneratedColumn = mapping.generatedColumn

        sourceMap.mappings += base64VLQ.encode(scriptIndex - previousSource)
        previousSource = scriptIndex

        sourceMap.mappings += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine)
        previousOriginalLine = mapping.originalLine - 1

        sourceMap.mappings += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn)
        previousOriginalColumn = mapping.originalColumn

      fileLineOffset += file.content.split("\n").length

    js += "}).call(this);\n//@ sourceMappingURL=/#{@config.client.js}.map"

    fs.writeFileSync @config.client.websitePath + "/" + @config.client.js, js
    fs.writeFileSync @config.client.websitePath + "/" + @config.client.js + ".map", JSON.stringify(sourceMap)
    log.info "Build complete: #{@config.client.js}"

  buildCSS: (options)->
