diff --git a/ethereum/javascript_runtime.go b/ethereum/javascript_runtime.go
index b05d3923207abcb184285d7a03a5b350457488a6..737f7663f2e37e1e1367e8a36d94435218f0b73c 100644
--- a/ethereum/javascript_runtime.go
+++ b/ethereum/javascript_runtime.go
@@ -138,6 +138,7 @@ func (self *JSRE) initStdFuncs() {
 	eth.Set("require", self.require)
 	eth.Set("stopMining", self.stopMining)
 	eth.Set("startMining", self.startMining)
+	eth.Set("blockDo", self.execBlock)
 }
 
 /*
@@ -207,3 +208,18 @@ func (self *JSRE) require(call otto.FunctionCall) otto.Value {
 
 	return t
 }
+
+func (self *JSRE) execBlock(call otto.FunctionCall) otto.Value {
+	hash, err := call.Argument(0).ToString()
+	if err != nil {
+		return otto.UndefinedValue()
+	}
+
+	err = self.ethereum.BlockDo(ethutil.FromHex(hash))
+	if err != nil {
+		fmt.Println(err)
+		return otto.FalseValue()
+	}
+
+	return otto.TrueValue()
+}
diff --git a/utils/cmd.go b/utils/cmd.go
index e1fc0fc00e4f9890d133b920eb8913af393a6f29..e66bb2612a6fb33b54d9fd7a913057493c46ee98 100644
--- a/utils/cmd.go
+++ b/utils/cmd.go
@@ -38,9 +38,11 @@ func DoMining(ethereum *eth.Ethereum) {
 		// Give it some time to connect with peers
 		time.Sleep(3 * time.Second)
 
-		for ethereum.IsUpToDate() == false {
-			time.Sleep(5 * time.Second)
-		}
+		/*
+			for ethereum.IsUpToDate() == false {
+				time.Sleep(5 * time.Second)
+			}
+		*/
 
 		ethutil.Config.Log.Infoln("Miner started")