Make flash message headers more flexible