Added script for mining