Attempt at properly wrapping the library.