Added core script function