Added nametoindex support.