Updated main to have serial library