More flexible token-functions.