Initial script with cmd-line processing