Added 'mapDecoded' function.