Adding API injection hook.