Added serial code