Added support for serial read input