Select algorithm to run.