Changed last_occurrence to return the integer timestamp instead