Use proper serialization and default to AMS when available.