Raise if format does not match
Update formats