Fixed core script