File checking appears to work