Fixed getopts, changed parameter.