Reformated the creation of the Serializer method.