Invoke & log function

yeah yeah