Encoding/decoding works! Some leaks, but it\'s enough. Almost release