Changed method name to addQueries