             @_loadingDone()
         else @_loadingDone()
 
-      status: (msg) ->
-        @_messageDiv.innerHTML = msg
-
       load: (options = {}) ->
-        @_options                          = options
-        @_options.fadeOut                  = true unless options.fadeOut?
-        @_loadingDiv                       = document.createElement("div")
+        @_options                          = @_setOptions(options)
+        @_loadingDiv                       = document.createElement("header")
         @_loadingDiv.className             = "pg-loading-screen"
-        @_loadingDiv.style.backgroundColor = options.backgroundColor || "#f46d3b"
-        @_messageDiv                       = document.createElement("div")
-        @_messageDiv.className             = "pg-loading-message"
-        spinner                            = document.createElement("div")
-        spinner.className                  = "pg-loading-spinner"
+        @_loadingDiv.style.backgroundColor = @_options.backgroundColor
+        @_loadingDiv.innerHTML             = @_options.template
         spinnerTemplate                    = null
-        loadingInnerDiv                    = document.createElement("div")
-        loadingInnerDiv.className          = "pg-loading-inner"
-        loadingCenterOuterDiv              = document.createElement("div")
-        loadingCenterOuterDiv.className    = "pg-loading-center-outer"
-        loadingCenterMiddleDiv             = document.createElement("div")
-        loadingCenterMiddleDiv.className   = "pg-loading-center-middle"
-        logoImg                            = new Image()
-        logoImg.className                  = "pg-loading-logo"
-        logoImg.src                        = options.logo
+        spinner                            = @_loadingDiv.getElementsByClassName("pg-loading-spinner")[0]
+        logo                               = @_loadingDiv.getElementsByClassName("pg-loading-logo")[0]
+        logo.src                           = @_options.logo
 
         for script in document.scripts
           if script.id == "pgLoadingSpinner"

      status : (msg) -> _pleaseWait.status(msg)
    }

  window.pleaseWait = new PleaseWait()

        spinner.innerHTML = if spinnerTemplate?
          spinnerTemplate
        else if @_options.spinnerTemplate?
          @_options.spinnerTemplate
        else
          throw new Error("You need to set a spinner template ID or spinnerTemplate")

        document.body.appendChild(@_loadingDiv)

      _loadingDone: ->
        document.body.removeChild(@_loadingDiv)
        @_stylesheet.disabled = true
        document.body.className += " pg-loaded"

      _setOptions: (new_opts = {}) ->
        options = @defaultOptions

        # Set options
        for k, v of new_opts
          if options.hasOwnProperty(k) then options[k] = v

        options
    }

    return {
