Created matrix first.