Partially complete, still working on netlib functionality