Moved serializer from hardware to utility.