Other functions of niacin include removing toxic chemicals from the body, and helping with the production of steroid hormones made by the adrenal gland. These hormones include sex hormones and stress-related ones. 