Putting iteration over all combination to separate function.
Initializing arguments in its own function.
Getting error max values in own function.