Serial code into a separate module