Stupid software bug
Correct value loaded into RAM at least
Separate diagonal calculation into separate stage