Replaced key variable with token