TRIAL: Added a timeout to serial read