Removed useless queries.