Barnett playing key role for Bucks