Correctly precomputing delta values