Setting Up the Triage Function