Updated update function for smart folder