File checks added