Measuring functional connectivity during distinct stages of a