Added Method class in logging. Also now you can invoke in invoking.