Fixed getopt problems.