Add limits to the queries