Change script to use "good" matrix computation