Added initial support for generating scan ranges