Use separate function for in argument parsing.