Switched registerKnapping() to use Stone's Global variables instead of being hard coded.

Also reduced from 12 loops to 4.