Update function to pass year arg