Added error handling for parsed arguments.