Added a debug parameter to the KP constructor - Now we need to use it