Use ls instead of listing all files manually