Update some scripts to make them work.