Used lambda for Key decoding
Moved noise making