Added _DEBUG_ define; Pulled post-processing validation into separate function; Fixed post-processing allowing a few cases to slip through