Add Script function.