Removed boolean parameter from custom serialize method signature.