Reimplementation of the Headwinds libraries