The goal of this clinical research study is to evaluate the effectiveness of melatonin for the management of poor appetite and weight loss in advanced cancer patients. The effectiveness of melatonin on weight gain, keeping/gaining of lean muscle mass, improved appetite, and side effects will also be evaluated.