Adds authentication to bug_cc function.