Wrote a few of the SPK functions that were passed over.