Drago algorithm implemented