Implemented data initialization. Should be rechecked, matrix is too suspitious