Copying file from the matrix directory.