Added custom group functionality.