Added MethodInvoker class.