A small fix, and more debug code.
Merge pull request #130 from Clashnia/hqmbranch

A small fix, and more debug code.