Debugging messages not sending properly