Add pre/post tasks. refs #4