Start writing avatar handler