Linking to the library is ugly but complete; need physical testing still