Removed unneeded testing code that introduced a potential for an error.