Added a tokenizer function