Added priority time event queue and the cron event loop