adea_setup function

Standarize input and output