Broke everything by working on matrices