A better attempt to have only one instance of serial object was made.