Complete algorithm to be tested, split and optimized.