Moved arg init outside main function.