Added feature so that we can use ReflectionMethod and other classes too.