Add debugging for prime connections.
Merge pull request #17 from allenxwang/master

Add debugging for prime connections.