Need to check this, else events with very large times are executed.