Added saves decoder/encoder