Improved kpiserver.py existing methods.