Added output subject list path input to function