Fixed to run large matrixes