Added the token function.