Moved to writing to streamwriter directly with serializer