This drug is a tranquilizer often administered for several purposes . Initially , it functioned as a treatment for sleeplessness, but now , its principal functions include humane euthanasia in veterinary patients and, infrequently, as an anesthetic in certain animal procedures . This vital to un