Add support for file validation