Changed for multiple -s|sg and -n|sn commandline parameters