Added some commit validation to serializer.