Fixed the fault tolerance code. This compleetes Haddop