Merged lib functions into parser