Added the relnamecache structure and improved some variable names.