Added ability to create invite codes.