Fixing function logs