Moved argument error report to top in order to self-document.