Checking if file exists and file statistics added.