Templated some of the yearview functions.