Finished writing the coherence analysis code. Next up, making pretty pictures. :-)