Make it usable as a library.