Modified the output of the cleaning function