Simplified and separated an argument parsing to a utility file.