The drug is a barbiturate often used for several purposes . Historically , it functioned as a sleep aid , but now , its main functions include euthanasia in animals and, infrequently, as an anesthetic agent in certain veterinary operations . This important to understand that the medication is a