Initial draft for library interface.