Changes from async to sync.