Refactored setup() and removed forced sync().