The endogenous pacemaker for the sleep-wake cycle, known as the master clock. The SCN is part of the hypothalamus within the limbic system. When light is detected by the SCN it sends a signal to the pineal gland, stopping the production of melatonin, a hormone that results in a sleep response.