Added max attemps to guaranteed messages