This is the vgstation's fork of baystation12's code with PKS additions.