Adding basic serial IO functionality