Adapt library to support ES 0.3.0