Merged with elements of decompiled Sky NZ 1.4.0.5 plugin