Added an entity_query_alter hook