Added cb_function and cb_extra args. Updated tg