Prepare storage for root record in header. Old solutions are the best!