Mostly working fading tail
Added fading tail based on logarithmic lookup