Added icustom macro to make AOD chain.