Splitting into encoder, decoder