Added Serializer class.