Added native event loop