Also make trusted_realms optional