Currently rTMS for treating depression is delivered without knowing whether the TMS pulses are synchronized with the patient's brain rhythms. We will study healthy and depressed adults with TMS inside of the MRI scanner or outside of the MRI scanner using optics, and test whether it matters precisely timing the TMS pulses with EEG.