Added a feature of resolving reference type