What are the functions of Pineal Gland ?

It is a small cone-shaped gland (8 mm in length, 4mm in breadth) attached by a hallow stalk to the roof of the dorsal surface of the diencephalon. Pineal gland secretes melatonin hormone.