Code written for the Lerou Laboratory, Brigham & Woemn'