Add encoding and memory params