An unmanaged port of the PINE library.