Change ec to a function, rather than an alias