Added 4 table query limit