Credit to StarSwarm and his crew for help on the original PLAT version and CaptinLetus for small coding edits!