         else if ( lines[i+1].startsWith("    tomorrow") )
             if (! dom.text().includes('Tomorrow'))
                 header = 'Tomorrow'
-        # Print later subheading
+        # Print day after tomorrow subheading
         else if ( lines[i+1].startsWith("    day after"))
             if (!dom.text().includes('Day After Tomorrow'))
                 header = 'Day After Tomorrow'
+        # Print later subheading
+        else if ( lines[i+1].search('\\d{2}-[a-zA-Z]{3}-\\d{4}') != -1 )
+            day = lines[i+1].trim().substr(0,11)
+            dayHeader = if USE_LATER_DATE then lines[i+1].trim().substr(0,11) else 'Later'
+            if (!dom.text().includes(dayHeader))
+                header = dayHeader
 
         # If required add in the header
         if (header != "")

# Author: Connor Beardsmore <connor.beardsmore@gmail.com>
# Last Modified: 22/03/18

# Bash command to pull events from icalBuddy
# Set +2 to how many days you want to show
# icalBuddy has more functionality that can be used here
command: "/usr/local/bin/icalBuddy -n eventsToday+2"

# Update is called once per hour
refreshFrequency: "1h"

    dom.empty()
    dom.append("""<div id="head"> Upcoming Events </div>""")

    # Filter out all lines that aren't event headers or dates
    lines = lines.filter (x) -> ( ( x.startsWith(bullet) ) ||
      ( x.search('(today|tomorrow)') != -1  ) ||
      ( x.search('\\d{2}-[a-zA-Z]{3}-\\d{4}') != -1  ))

    #Add No Events tag if nothing upcoming
    if ( lines.length == 0 )
