Adding code for AMA.