Added make token stream function.