Add checks for all args and throw exceptions if necessary.