Adds correct libpath and modified "do"