Starts to use functions from kspmc.py instead of local ones.