May be it is time to use Serin and Serout.

----------------------