Avoid dependency on ec