Skeleton code for fault recovery