Use the term 'mat_final' for calculated matrices used for transforming. Also rename 'pivot' to 'pivot_local'.