Constructing core script