Added serial read/write.