Removed unused sync calls
sync() now passes online status in a callback - prevents 2 sync calls

Used when authenticating to prevent double sync calls