Enhanced version of the Algo