Upgraded to work with latest SDK.
Merge pull request #56 from kaisellgren/master

Upgraded to work with latest SDK.