Make accessing things by name more general