Add ability to take library path as input