Changed from value of reference pass for Matrix for automatic memory
management.