Improves Flash to make it serialisable for returning as the api response