Added logging function for failure management