Moved all flag parsing to globals.go