Implement async query