Added dependency on Encode