`component[key]` -> `value`

Also either check `number_of_evalutions > 0` at the beginning of the function, or mention in the docstring that it must be a positive integer.