Moved getYear to functions