PIC code updated