Tidied up the parse_options function