Moved serial stuff into a namespace.