Matrix multiplication cleanup.