Changed the logic to use a quoted variable name.