Added method invocation logging