Study tracks malfunctions of heart devices