Add recovery mechanism.