Better error message when invalid arguments are supplied.