Fixed broken scipt
Added pagination for time=year