Script finds solution in a reasonable amount of time.