Added a deferred serializer to avoid creating a lot of files