Isn't ```this.solutionPath``` available in the function?