Device keeps heart patients alive and active