Implemented pure C interface.