Adding the files. TODO: condense the matrix block