Added token generation.