Updated sparkles code