Set script behaviour