Add flag parsing and address parsing