Shortened parameter from valName to name.
Removed unneeded line of code.