Initialize function, allow passing in alternative progname