Modify some scripts