Replace the original version of the function with the reference version and use it everywhere. Added runtime assertions to check that an invalid DCB is never processed.