Updated code for pcb