See previous comment regarding `$tmp`.