Working the matrix code