Add partial support for invoking methods