Fix code to return debugging information