Add pass recovery function