Updated to use a passed in path.