Removed duplicate function setViewVar(), and fixed CS issue - Array to array.