Added the SerialListener to the main class.