Put back the sys.
Do we need the encode?