Support batch queries (Resolves #40)