Update adapter.
Merge pull request #34 from zpbx/adapter

Update adapter.