Added inline check for file.