Moving code to token