Make wrench a proper library