Function efficiency() now returns a named vector