Change to use getopts