Another algorithm by btcoburst