Fixed ARF so that it works with mean weight inputs.