Improve querying, close #8
Add debuggy monitoring