Moved to named functions.
Read adapters synchronously.
Added factory test.