Setup with spout, added `studyid` variable