Parameter str is now unused.