Wrote rextract and getopt