Add serializer as dependency.