New algorithm is integrated into the code, preliminary