Added () to scanDir function