Avatar logic implementation