Extended Error reporting and custom query support