Added circuittry for 4x4 matrix.