Re-group API Function