Refactored
Fixed adapter
Merge remote-tracking branch 'origin/master'