added sync at every 500 ms