Migrate to the new Paths API