Move this function into IabActivity.