Stats code update for DCP 189 and bug fixes.