Added functions and update AMPL_init()