Algorithm added