cffi version of previous commit.