Added some debug statements, flipped a less-than.