Implemented recovery from failure