Auto year script