Added basic serial code