Automatic token generation when callbacks exist