Changed the year range functionality to operate on the year value, and c...

...orrectly.