Factory for creating matrices added.