Implement token splitter function, implement config decoder