Remove getopts function making in line instead