Added logic to post for loops for year filtering; addresses #3