Finished option parsing functions