Change matrices to data.frames for easier use.