Multimode scaling.  Properly handle variable names