Implemented triage function with a simple triage rule