Implement shorthand `range' option
Improve error messages