Add helper for synchronous queries