Add function to reset buffer
Use buffer for token value