Added the matrix module