We describe a plugin for SPM, a popular fMRI statistical processing package, which interfaces to the Dartmouth Experiment lab book, an ontologybased tool to help researchers manage metadata and maintain it in a uniform format. The SPM plugin permits the creation of batch processing scripts that automatically populate the lab book, thereby hiding the details of data management while permitting researchers to continue using an analysis tool with which they are familiar