Response to new attribute in Variable

Also the meshing is rewritten.