Added call to encoder