Move functions to under the token definition.