Get messages independent on script depth