Identifying functional groups