Update code and script