Use v1.1 API.

Thanks to Fabian Kneißl for pointing this out.