Added function and data structure for rebooking credits