Updated to use passed in path.