Changed query to include docs