Added support for buyapple and PHG.