Added a bunch of doall's to force writing of matrices, etc.