Adding credentials class, more-filled-out Adapter.