IndexedMat staring to work