Simplified file verification code quite a bit.