Takes several similar functions and makes them more versatile, then deletes the reduntant functions.
Merge branch 'master' of https://github.com/mjukis/kspmc