In the compiled code the `run` function is too big for iOS and should be split into several functions.