Complete select year function.