Made some changes to the API library to support SnapClerk