Added selection fading code