Remove printlns
Fix codec decoding func