Added range for query