Added debug print functions
Added debug print functions