Optionally allow input range, close #4.