Adding ability to split into matrix