Moved serial port initialization to beginning of new() subroutine