Added comments to Debug function.