All Studies code from winter 2014 (Mark and Antonio)