Added support for magic methods and interfaces