Added support for querying callback for different tricky things like table structure