Adding debug tool and also improving preguntales queries