Use a timeout of 1 second as opposed to 30 when mining