Added notes for groundwork of logging function