Moving iCal generating stuff to a helper