Changes for log in recovery