Switched to event driven com port logic