Added background sync-ing by using a scheduled thread executor