PWS-103 #comment fixed issue with connection code.
PWS-103 #comment Replace 'release' with 'end' since pooling isn't used.
PWS-103 #comment Modified Traversal algorithm to fix dead ends.