[FEATURE] Use static instantiation with max depth check