Add old functions to make the library work, still things to be refactored