Modify save to file service by adding parameter