Fixed copy-paste-error.
Modified the matrices for dependency calculations.