             usleep(UInt32(useProperties.delay) * 1000)
         }
         if let redirect = properties.redirect {
-            return collectResponse(requestPath: requestPath + "/" + redirect, filePath: filePath + "/" + redirect, properties: useProperties)
-        }
-        return collectResponse(requestPath: requestPath, filePath: filePath, properties: useProperties)
-    }
-    
-    private static func collectResponse(requestPath: String, filePath: String, properties: SmartMockProperties) -> SmartMockResponse {
+            return collectResponse(requestPath: requestPath + "/" + redirect, filePath: filePath + "/" + redirect, requestGetParameters: requestGetParameters, properties: useProperties)
+        }
+        return collectResponse(requestPath: requestPath, filePath: filePath, requestGetParameters: requestGetParameters, properties: useProperties)
+    }
+    
+    private static func collectResponse(requestPath: String, filePath: String, requestGetParameters: [String: String], properties: SmartMockProperties) -> SmartMockResponse {
         // First collect headers to return
         let returnHeaders = SmartMockHeaders.makeFromHeaders(nil)
         let files = SmartMockFileUtility.list(fromPath: filePath) ?? []

        }
        
        // Generate file list as JSON
        if properties.generatesJson {
            if let files = SmartMockFileUtility.recursiveList(fromPath: filePath) {
                let response = SmartMockResponse()
                if properties.includeMD5 {
                    var jsonString = "{"
                    var firstFile = true
                    for file in files {

        // Check for response generators, they are not supported (except for a file within the file list)
        if properties.generates != nil && (properties.generates == "indexPage" || properties.generates == "fileList") {
            if properties.generates == "fileList" {
                if let fileResponse = responseFromFileGenerator(requestPath: requestPath, filePath: filePath, requestGetParameters: requestGetParameters, properties: properties) {
                    return fileResponse
                }
            }
