Added getopts()