Argument checking.