Added serializer hook.