Adding diagram traces