Update EYR3 script: clean up codes