Handle changes in Pin's API.
Merge pull request #1 from inopinatus/fix-v1-api

Handle changes in Pin's API.