Add periodic sync

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>