Copied AFI to make rAFI (Real-valued AFI)