Changed oos to first call as.matrix on input arguments