Updated SDK to recent API changes.