Added token function.