Add Group Function (unfinished)