Changed the function of ECcontrol