Yes that is doable (provided the format agent is always defined).