Add check for files when starting