Removed rank field from the query as it is currently not used.