Added bounds to query