Added indexed queries.