Implemented logging to functions