Added option parsing.