Added some debugging to consistency helper