Added method to get all scalar names (not currently used).