Make my life easier.
Add basic decoding loop.
Take an output file optionally.