Output message logic worked on