Using new algorithm