Added invite logic