Make mining support optional