Added debug for messages