1) Did not check for an empty variable list in getVariables.