Added sync support

Offline support is going to be key