Added high level API, but we get segfaults again