Moved date checks into main function so they're not run twice. Added date check to start date on external events. No checks are done on RRULE or EXDATE fields yet.