Adjusted matrix calculations