Optimisation in SerialListener and removed some log statements.