Added push notifications and set flush interval