Added parameter T and d by level