Changed the way sync_all is called. Removed the old solution.