Disabled debug code.
Implemented inclusive instead of exclusive scan.