Added range for generation