VX(Be): Refactor a bit the algorithm implementation.