Extend display to work with matrices