Implemented token output and creating tokens.