Replaced a bunch of subfunctions with calls to spm_summarise.