Added the missing matrix parameter