Added interface for reading from serial