Adding diagram trace