Added batch token registration code