Optimized Re-attack method
Converted Miner to new framework