Removed file from scan() function