Fixed the mining examples so that they pick up where they left off.