Remove unused function
Refactoring C code a little and base64 encoding the source string in the tokens output