Hi All, I have not really got to grips with Javascript but can use php, html etc, I have just been lazy and used jquery. I am looking to combine tokenMods 'controlled by' and token swappers change swap tokens for a druid's wild shape. As Javascript is asynchronous it often takes steps from the macro in a different order than planned. The order I am aiming for is: 1) remove controlled by all, and remove display name from current wildshape form: !token-mod --set controlledby| !token-mod --off showname 2) swap the token, using a drop down query: !swaptoken ?{Choose Form|Otarius|Ape|Baboon|Badger|Black Bear|Boar|Brown Bear|Cat|Deer|Dire Wolf|Elk|Giant Badger|Giant Hyena|Giant Lizard|Giant Rat|Giant Spider|Giant Weasel|Giant Wolf Spider|Hyena|Mastiff|Panther|Tiger} 3) change the controlled by, display name and showname !token-mod --set controlledby|all !token-mod --set name|"Otarius ?{Choose Form}" !token-mod --on showname I thought the best way would be to create an api script, that then called each of the three parts after a delay. Two problems that I see: 1) I am not sure if setTimeout is the best way, or if there is a way to call the next function when the previous reports that it is completed, 2) I have no idea how to call the functions from the other scripts. I was hoping someone would be able to talk me through it. Many thanks