Added code to decode messages before showing them