Updated multiple series code