Reversed prev argument order. Corrected incorrect non-use warnings.