     private(set) static var fastfileInstance: Fastfile?
 
     // Called before any lane is executed.
-    private func setupAllTheThings() {
+    private func setupAllTheThings(lane: String, parameters: [String : String]) {
+        LaneFile.fastfileInstance!.beforeAll(currentLane: lane, parameters: parameters)
         LaneFile.fastfileInstance!.beforeAll()
     }
 


public extension LaneFileProtocol {
    var fastlaneVersion: String { return "" } // default "" because that means any is fine
    func beforeAll() { } // no op by default
    func afterAll(currentLane: String) { } // no op by default
    func onError(currentLane: String, errorInfo: String) {} // no op by default

        }

        // call all methods that need to be called before we start calling lanes
        fastfileInstance.setupAllTheThings(lane: named, parameters: parameters)

        // We need to catch all possible errors here and display a nice message
        _ = fastfileInstance.perform(NSSelectorFromString(laneMethod), with: parameters)
