Add race detection