Change the constructor to accept a base path.