Improvements to invite script